package com.guilin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guilin.common.annotation.Excel;
import com.guilin.common.core.domain.BaseEntity;

/**
 * 问卷调查记录对象 survey_response
 * 
 * @author xiaoqi
 * @date 2025-06-24
 */
public class SurveyResponse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 问卷调查编号 */
    @Excel(name = "问卷调查编号")
    private String responseCode;

    /** 问卷调查用户 */
    @Excel(name = "问卷调查用户")
    private Long userId;

    /** 问卷表 */
    @Excel(name = "问卷表")
    private Long questionnaireId;

    /** 问卷调查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "问卷调查时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date responseTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setResponseCode(String responseCode) 
    {
        this.responseCode = responseCode;
    }

    public String getResponseCode() 
    {
        return responseCode;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setQuestionnaireId(Long questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId() 
    {
        return questionnaireId;
    }

    public void setResponseTime(Date responseTime) 
    {
        this.responseTime = responseTime;
    }

    public Date getResponseTime() 
    {
        return responseTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("responseCode", getResponseCode())
            .append("userId", getUserId())
            .append("questionnaireId", getQuestionnaireId())
            .append("responseTime", getResponseTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
